package com.hrrt.home.dao.model;

import java.io.Serializable;
import java.util.Date;

public class HomeRecord implements Serializable {
    private Integer id;

    /**
     * 发送状态
     *
     * @mbg.generated
     */
    private String transmitStatus;

    /**
     * 发送时间
     *
     * @mbg.generated
     */
    private Date transmitTime;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private String userId;

    /**
     * 设备id
     *
     * @mbg.generated
     */
    private String equipmentId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTransmitStatus() {
        return transmitStatus;
    }

    public void setTransmitStatus(String transmitStatus) {
        this.transmitStatus = transmitStatus;
    }

    public Date getTransmitTime() {
        return transmitTime;
    }

    public void setTransmitTime(Date transmitTime) {
        this.transmitTime = transmitTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", transmitStatus=").append(transmitStatus);
        sb.append(", transmitTime=").append(transmitTime);
        sb.append(", userId=").append(userId);
        sb.append(", equipmentId=").append(equipmentId);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HomeRecord other = (HomeRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTransmitStatus() == null ? other.getTransmitStatus() == null : this.getTransmitStatus().equals(other.getTransmitStatus()))
            && (this.getTransmitTime() == null ? other.getTransmitTime() == null : this.getTransmitTime().equals(other.getTransmitTime()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getEquipmentId() == null ? other.getEquipmentId() == null : this.getEquipmentId().equals(other.getEquipmentId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTransmitStatus() == null) ? 0 : getTransmitStatus().hashCode());
        result = prime * result + ((getTransmitTime() == null) ? 0 : getTransmitTime().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getEquipmentId() == null) ? 0 : getEquipmentId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}